#ifndef LayotuInterpolation_H_
#define LayotuInterpolation_H_


#include "VMChangeEvent.h"

class LayoutInterpolation{
public:
	static LayoutInterpolation* getInstance();
	LayoutInterpolation();
	void takePastSnapshot();
	void takePostSnapshot();
	void doInterpolation(float frame);
	void setUseVP(bool);
	void setTimer(float t);



private:
	static LayoutInterpolation*  _LayoutInterpolation;
	vector< VMChangeEvent* > _evList;
	bool _enable;
	bool _posttaked;
	bool _useVP;
	float _speed;
	float _time;
	float _frame;
	float _cframe;
};



#endif
